<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>奇瑞汽车股份供应链图谱</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
</head>
<body>
    <div class="container">
        <div class="header-container">
            <h1 class="main-title">奇瑞汽车股份供应链图谱示例</h1>
        </div>
        <div class="export-container">
            <button class="export-btn" id="exportAllBtn">导出全部交易</button>
        </div>
        <div class="supply-chain-container">
            <div class="supply-chain-horizontal" id="supplyChain"></div>
            <div class="details-panel" id="detailsPanel">
                <div class="details-header">
                    <h3 id="companyName">选择企业查看详情</h3>
                    <div>
                        <button class="export-btn" id="exportCurrentBtn">导出当前企业</button>
                        <button class="close-btn" id="closeBtn">×</button>
                    </div>
                </div>
                <div class="details-content" id="detailsContent">
                    <div class="tabs">
                        <button class="tab-btn active" data-tab="all">全部</button>
                        <button class="tab-btn" data-tab="upstream">上游</button>
                        <button class="tab-btn" data-tab="downstream">下游</button>
                    </div>
                    <div class="tab-content active" id="allTab">
                        <p>点击上侧企业节点查看详细信息</p>
                    </div>
                    <div class="tab-content" id="upstreamTab"></div>
                    <div class="tab-content" id="downstreamTab"></div>
                </div>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
    <script src="https://gcore.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>